<?php
/**
 * The sidebar containing the main widget area.
 *
 * If no active widgets in sidebar, let's hide it completely.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?>

	<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
		<div id="secondary" class="widget-area" role="complementary">
			<?php dynamic_sidebar( 'sidebar-1' ); ?>

            <div class="newestpostbycat">



            </div>


            <aside id="recent-posts-299" class="widget widget_recent_entries">
                <h3 class="widget-title">Tin tức</h3>
                <ul>
                    <?php $my_query = new WP_Query('category_name=tin-tuc&showposts=10'); ?>
                    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
                        <li>
                            <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
                        </li>
                    <?php endwhile; ?>
                </ul>
            </aside>
		</div><!-- #secondary -->
	<?php endif; ?>